import sys
import os

#------------------------
#add lib path to sys.path
#------------------------
path=os.path.dirname(__file__)
dataPath=os.path.join(path,'..', 'data')
dataPath=os.path.abspath(dataPath)
libPath=os.path.join(path,'..', 'lib')
libPath=os.path.abspath(libPath)

sys.path.append(libPath)

import twill.commands as cmds
import subprocess


os.rename(os.path.join(dataPath,'build_info.db'),os.path.join(dataPath,'temp_build_info.db'))
os.rename(os.path.join(dataPath,'temp_build_info.db'),os.path.join(dataPath,'build_info.db'))